package com.pp.util;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;

/**
 * Created by lanou on 18/1/16.
 */
public class UserUtil {
    public Statement JDBCUtil(){
        Statement stt = null;
        try {
            Class.forName("com.mysql.jdbc.Driver");
            Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/test?characterEncoding=utf8&useSSL=true","root","Root123..");
            stt=conn.createStatement();

        } catch (Exception e) {
            e.printStackTrace();
        }
        return stt;
    }

}
